#!/usr/bin/python
# -*- coding: UTF-8 -*-

from extension.test_logic.DpuLogic import DpuLogic


class DpuDemo(DpuLogic):
    """
        Name:
            TestCaseDemo
        Label:
            测试用例demo
        PreCondition:

        TestStep:
            1) API查询BMC版本信息
        ExpectedResult:
            A) 查询得到正确的BMC版本信息
        Parameters:

        Author:
            XXXXXX
        Last Modified:
            xxxx-xx-xx
        Remark:

    """

    # 测试执行前配置等准备操作
    def pre_test_case(self):
        super().pre_test_case()
        self.DPU_ip = self.dpu_host.local_ip
        print(self.DPU_ip)
    # 测试步骤
    def procedure(self):
        self.test_logic()

    # 测试结束后恢复环境
    def post_test_case(self):
        pass
